﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001131 RID: 4401
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class SetAvatarPathCsReq : IMessage<SetAvatarPathCsReq>, IMessage, IEquatable<SetAvatarPathCsReq>, IDeepCloneable<SetAvatarPathCsReq>, IBufferMessage
	{
		// Token: 0x170037C0 RID: 14272
		// (get) Token: 0x0600C4FD RID: 50429 RVA: 0x00214711 File Offset: 0x00212911
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<SetAvatarPathCsReq> Parser
		{
			get
			{
				return SetAvatarPathCsReq._parser;
			}
		}

		// Token: 0x170037C1 RID: 14273
		// (get) Token: 0x0600C4FE RID: 50430 RVA: 0x00214718 File Offset: 0x00212918
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return SetAvatarPathCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170037C2 RID: 14274
		// (get) Token: 0x0600C4FF RID: 50431 RVA: 0x0021472A File Offset: 0x0021292A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return SetAvatarPathCsReq.Descriptor;
			}
		}

		// Token: 0x0600C500 RID: 50432 RVA: 0x00214731 File Offset: 0x00212931
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAvatarPathCsReq()
		{
		}

		// Token: 0x0600C501 RID: 50433 RVA: 0x00214739 File Offset: 0x00212939
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAvatarPathCsReq(SetAvatarPathCsReq other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C502 RID: 50434 RVA: 0x0021475E File Offset: 0x0021295E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SetAvatarPathCsReq Clone()
		{
			return new SetAvatarPathCsReq(this);
		}

		// Token: 0x170037C3 RID: 14275
		// (get) Token: 0x0600C503 RID: 50435 RVA: 0x00214766 File Offset: 0x00212966
		// (set) Token: 0x0600C504 RID: 50436 RVA: 0x0021476E File Offset: 0x0021296E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MultiPathAvatarType AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x0600C505 RID: 50437 RVA: 0x00214777 File Offset: 0x00212977
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as SetAvatarPathCsReq);
		}

		// Token: 0x0600C506 RID: 50438 RVA: 0x00214785 File Offset: 0x00212985
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(SetAvatarPathCsReq other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C507 RID: 50439 RVA: 0x002147B4 File Offset: 0x002129B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != MultiPathAvatarType.None)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C508 RID: 50440 RVA: 0x002147F9 File Offset: 0x002129F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C509 RID: 50441 RVA: 0x00214801 File Offset: 0x00212A01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C50A RID: 50442 RVA: 0x0021480A File Offset: 0x00212A0A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != MultiPathAvatarType.None)
			{
				output.WriteRawTag(104);
				output.WriteEnum((int)this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C50B RID: 50443 RVA: 0x0021483C File Offset: 0x00212A3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != MultiPathAvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C50C RID: 50444 RVA: 0x0021487A File Offset: 0x00212A7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(SetAvatarPathCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != MultiPathAvatarType.None)
			{
				this.AvatarId = other.AvatarId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C50D RID: 50445 RVA: 0x002148AB File Offset: 0x00212AAB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C50E RID: 50446 RVA: 0x002148B4 File Offset: 0x00212AB4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 104U)
				{
					this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
				}
				else
				{
					this.AvatarId = (MultiPathAvatarType)input.ReadEnum();
				}
			}
		}

		// Token: 0x04004F68 RID: 20328
		private static readonly MessageParser<SetAvatarPathCsReq> _parser = new MessageParser<SetAvatarPathCsReq>(() => new SetAvatarPathCsReq());

		// Token: 0x04004F69 RID: 20329
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004F6A RID: 20330
		public const int AvatarIdFieldNumber = 13;

		// Token: 0x04004F6B RID: 20331
		private MultiPathAvatarType avatarId_;
	}
}
